<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>用户列表</title>
</head>

<body>


  <script type="module">
    import request from './js/http.js'
    import createUserTable from './js/createhtml.js'

    addEventListener('load', function () {
      request({ url: '/users' }).then(data => {
        document.write(createUserTable(data))
      })

    })
/* 
        window.onload = function () {
    
          
    
        } */





  </script>


</body>

</html>